Optimal. Leaf size=30 \[ \frac {b \sec ^2(e+f x)}{2 f}-\frac {a \log (\cos (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {4138, 14} \[ \frac {b \sec ^2(e+f x)}{2 f}-\frac {a \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 4138
Rubi steps
\begin {align*} \int \left (a+b \sec ^2(e+f x)\right ) \tan (e+f x) \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {b+a x^2}{x^3} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\operatorname {Subst}\left (\int \left (\frac {b}{x^3}+\frac {a}{x}\right ) \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {a \log (\cos (e+f x))}{f}+\frac {b \sec ^2(e+f x)}{2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 30, normalized size = 1.00 \[ \frac {b \sec ^2(e+f x)}{2 f}-\frac {a \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 37, normalized size = 1.23 \[ -\frac {2 \, a \cos \left (f x + e\right )^{2} \log \left (-\cos \left (f x + e\right )\right ) - b}{2 \, f \cos \left (f x + e\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 28, normalized size = 0.93 \[ \frac {b \left (\sec ^{2}\left (f x +e \right )\right )}{2 f}+\frac {a \ln \left (\sec \left (f x +e \right )\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 33, normalized size = 1.10 \[ -\frac {a \log \left (\sin \left (f x + e\right )^{2} - 1\right ) + \frac {b}{\sin \left (f x + e\right )^{2} - 1}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.93, size = 32, normalized size = 1.07 \[ \frac {a\,\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )}{2\,f}+\frac {b\,{\mathrm {tan}\left (e+f\,x\right )}^2}{2\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.46, size = 42, normalized size = 1.40 \[ \begin {cases} \frac {a \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {b \sec ^{2}{\left (e + f x \right )}}{2 f} & \text {for}\: f \neq 0 \\x \left (a + b \sec ^{2}{\relax (e )}\right ) \tan {\relax (e )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________